< previous page page_511 next page >

Page 511
12181-0511a.gif
Figure 18.6.
Using the Immediate window to visually check the contents of any
variable or property value in the application.
The Watches window, on the other hand, will display the values of any Watch expressions that you have chosen to track. There are two types of Watch expressions, those that only display the values of the expressions, and those that stop the execution of the application when the condition you specified becomes True. In the Watches window (see Figure 18.7), the Context column indicates the procedure, module, or modules in which each Watch expression is checked.
12181-0511b.gif
Figure 18.7.
Using the Watches window to track expressions in the application.
If the statement that the application is currently stopped at is within the specified context of the Watch expression, then the value for that expression is displayed. Otherwise, the value column will display a message that the statement isn't in context. Finally, the Locals window displays the value of any variables that are within the scope of the current procedure. As the execution of the application flows from one procedure to another, the Locals window (see Figure 18.8) changes to reflect only those variables applicable to the current procedure.

 
< previous page page_511 next page >

If you like this book, buy it!